package com.zf.rpc.registry;

import java.net.InetSocketAddress;

/**
 * @ProjectName: RPC-zhaofeng
 * @Package: com.zf.rpc.registry
 * @ClassName: ServiceDiscovery
 * @Author: zf
 * @Description:
 * @Date: 2021/5/18 20:03
 * @Version: 1.0
 */
public interface ServiceDiscovery {
    /**
     * 根据服务名称查找服务实体
     *
     * @param serviceName 服务名称
     * @return 服务实体
     */
    InetSocketAddress lookupService(String serviceName);
}
